package com.jnevision.salaryrecord.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.jnevision.salaryrecord.model.SalaryRecord;
/**
 * <p>
 * 薪资财务记录 前端控制器
 * </p>
 *
 * @author gavin
 * @since 2019-07-24
 */
import com.jnevision.salaryrecord.service.SalaryRecordServiceImpl;
@RestController
@RequestMapping("/salaryrecords")
public class SalaryRecordController extends ApiController {

	
	@Autowired
	private SalaryRecordServiceImpl salaryRecordServiceImpl;
	
	@PostMapping
	public R<Boolean> save(@RequestBody SalaryRecord salaryRecord){
		
		return this.success(this.salaryRecordServiceImpl.save(salaryRecord));
	}
	
	
}

